//-----------------------------------------------------------------------
// <copyright file="a_DesignerService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_DesignerService
    {
        #region a_Designer

        public static void Createa_Designer(a_Designer a_Designer)
        {            
            try
            {
                a_DesignerDAO a_DesignerDAO = new a_DesignerDAO();
                a_DesignerDAO.Createa_Designer(a_Designer);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_Designer(a_Designer a_Designer)
        {            
            try
            {
                a_DesignerDAO a_DesignerDAO = new a_DesignerDAO();
                a_DesignerDAO.Updatea_Designer(a_Designer);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_Designer(int did)
        {            
            try
            {
                a_DesignerDAO a_DesignerDAO = new a_DesignerDAO();
                a_DesignerDAO.Deletea_Designer(did);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_Designer Geta_Designer(int did)
        {            
            try
            {
                a_DesignerDAO a_DesignerDAO = new a_DesignerDAO();
                return a_DesignerDAO.Geta_Designer(did);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_DesignerCollection Geta_DesignerList(a_DesignerColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_DesignerDAO a_DesignerDAO = new a_DesignerDAO();
                return a_DesignerDAO.Geta_DesignerList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_DesignerCollection Geta_DesignerList(a_DesignerColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_DesignerDAO a_DesignerDAO = new a_DesignerDAO();
                return a_DesignerDAO.Geta_DesignerList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}